/**
 * Package Name:com.mango.framework.exception
 * Date:2016年4月24日上午12:16:22
 * Copyright (c) 2016, www.chaincar.com All Rights Reserved.
 */

package com.platform.server.exception;

import org.apache.commons.lang.StringUtils;

/**
 * * ClassName:AbstractException <br/>
 * Function: 自定义异常类. <br/>
 * @author len.song
 */
public class AbstractException extends RuntimeException{
    
    private static final long serialVersionUID = -8958002631092994278L;

    /**
     * 异常代码
     */
    private int code;
    
	public AbstractException(int code) {
		super();
		this.code = code;
	}

	public AbstractException(int code, String message, Throwable cause) {
		super(message, cause);
		this.code = code;
	}

	public AbstractException(int code, String message) {
		super(message);
		this.code = code;
	}

	public AbstractException(int code, Throwable cause) {
		super(cause);
		this.code = code;
	}

	public int getCode() {
		return code;
	}

}

